|
![](/i/fill.gif) |
In article <3a9e3bf4@news.povray.org>, "Nekar Xenos"
<vir### [at] icon co za> wrote:
> > Actually, in MegaPOV, you could do a macro that accomplishes
> > this...just
> > use the eval_pattern() function with the image_pattern and generate a
> > mesh.
>
> Never done any macro's before. I'll see what I can do.
I've done some macros for this, they take a pigment and generate a
"height field" from it (to use an image, you would use an image_map).
I've already got non-smooth square (like the height_field primitive that
is built-in), and two kinds of spherical height fields: one that uses
spherical coordinates, like a globe there is more resolution at the
poles, and the other subdivides an octahedron, giving a more even
distribution but less control of resolution (I may try a tetrahedron as
well...). I'll post some images soon and upload the include file to my
web site when it is closer to finished.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |